package com.javakc.pms.order.dispordrls.service;

import com.javakc.commonutils.jpa.base.service.BaseService;
import com.javakc.pms.order.dispordrls.dao.DispOrdRlsDao;
import com.javakc.pms.order.dispordrls.entity.DispOrdRls;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;

/**
 * @author ：史根根根根根键
 * @date ：2021/12/14
 * @description：
 * @modified By：
 * @version: 1.0.0
 */
@Service
public class DispOrdRlsService extends BaseService<DispOrdRlsDao, DispOrdRls> {

    public Page<DispOrdRls> queryByPage(int pageNo, int pageSize){

        return dao.findAll(PageRequest.of(pageNo-1,pageSize));
    }
}
